import { defineStore } from "pinia";

export const useUserStore = defineStore("user", {
  state: () => ({
    user: null,
  }),
  actions: {
    setUser(state, user) {
      state.user = user;
    },
  },
  persist: true,
});
